/*
 * @Author: zhengzhuang
 * @Date: 2020-05-16 15:28:15
 * @LastEditors: zhengzhuang
 * @LastEditTime: 2020-07-27 16:32:30
 * @Description: In User Settings Edit
 * @FilePath: /C20Driver_1.0.0/lib/model/get_driver_statistics_date.dart
 */
class GetDriverStatisticsDate {
  String todayIncome = "0";
  String todayOrderNum = "0";
  String todayDuration = "0";
  String todayDealRate = "0";

  GetDriverStatisticsDate(
      {this.todayIncome,
      this.todayOrderNum,
      this.todayDuration,
      this.todayDealRate});

  GetDriverStatisticsDate.fromJson(Map<String, dynamic> json) {
    todayIncome = json['today_income'].toString();
    todayOrderNum = json['today_order_num'].toString();
    todayDuration = json['today_duration'].toString();
    todayDealRate = json['today_deal_rate'].toString();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['today_income'] = this.todayIncome;
    data['today_order_num'] = this.todayOrderNum;
    data['today_duration'] = this.todayDuration;
    data['today_deal_rate'] = this.todayDealRate;
    return data;
  }
}
